package functions 
{	import functions.FunctionNode;	/**
	 * @author admin
	 */
	public class LambdaFunctionNode extends FunctionNode 
	{
		public function LambdaFunctionNode()
		{
			funcname = "lambda";	
			functiontype = SPECIALFUNCTION;
		}		
		override public function getValue( args : XML, scope : Object ) : XML
		{
			var dynamicFunctionNode:DynamicFunctionNode = new DynamicFunctionNode();
			dynamicFunctionNode.init( args, scope );
			var obname : String = Evaluator.gensym();
			Evaluator.objecttable[ obname ] = dynamicFunctionNode;
			return <objectliteral>{obname}</objectliteral>;
		}
	}}